package model

import (
	"github.com/gogf/gf/v2/os/gtime"
	"wh-1-backend/internal/model/entity"
)

type ResumePageListCondition struct {
	Username string
	Phone    string
}

type EditResumeInput struct {
	Username              string
	Phone                 string
	Birthday              string
	Gender                uint
	QQ                    string
	Wx                    string
	Email                 string
	Salary                int
	CompanyId             uint
	NationalityId         uint
	EducationBackgroundId uint
	FromId                uint
	CityId                uint
	FunctionId            uint
	IndustryId            uint
	SelfEvaluation        string
}

type EditResume1Input struct {
	EditResumeInput
	WorkExperience    []*EditWorkExperienceInput
	ProjectExperience []*EditProjectExperienceInput
}

type ResumeDetail struct {
	Id                    uint        `json:"id"`
	Username              string      `json:"username"`
	Phone                 string      `json:"phone"`
	Gender                uint        `json:"gender"`
	QQ                    string      `json:"qq"`
	Wx                    string      `json:"wx"`
	Email                 string      `json:"email"`
	CompanyId             uint        `json:"companyId"`
	NationalityId         uint        `json:"nationalityId"`
	EducationBackgroundId uint        `json:"educationBackgroundId"`
	FromId                uint        `json:"fromId"`
	FunctionId            uint        `json:"functionId"`
	IndustryId            uint        `json:"industryId"`
	CityId                uint        `json:"cityId"`
	Salary                int         `json:"salary"`
	Birthday              string      `json:"birthday"`
	SelfEvaluation        string      `json:"selfEvaluation"`
	CreatedAt             *gtime.Time `json:"createdAt" ` //
	UpdatedAt             *gtime.Time `json:"updatedAt" ` //
}

type ResumeDetail1 struct {
	ResumeDetail
	WorkExperience    []*entity.WorkExperience    `json:"workExperience"`
	ProjectExperience []*entity.ProjectExperience `json:"projectExperience"`
}
